<extend name="Public/base" />
<block name="body">
	<div class="main-title">
        <h2>角色授权</h2>
	</div>
	<div id="auth_groups">
        <form class="form-horizontal" action="{:U('AuthManager/addToGroup')}" method="post" enctype="application/x-www-form-urlencoded" >
            <input type="hidden" name="uid" value="{:I('uid')}">
			<div class="form-item">
	            <label class="item-label">分配角色<span class="check-tips">设置用户所属角色</span></label>
	            <volist name="auth_groups" id="vo">
		            <div class="controls">
		                <label class="radio"><input type="radio" name="group_id" value="{$vo.id}">{$vo.title}</label>
		            </div>
	            </volist>
	        </div>
            <div style="margin-top: 10px;">
                <button type="submit" class="btn submit-btn ajax-post" target-form="form-horizontal">确 定</button>
                <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
            </div>
        </form>
    </div>

</block>
<block name="script">
<script type="text/javascript">
	Think.setValue("group_id", {$group_id|default = 0});
    // 导航高亮
    highlight_subnav('{:U('User/index')}');
</script>
</block>